Remove timeout on select -- there is no need for it, since we don't do anything
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 7 Dec 2005 11:47:46 +0000 (11:47 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Wed, 7 Dec 2005 11:47:46 +0000 (11:47 +0000)
in the main loop except service I/O.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/console/daemon/io.c

index 90422557c8ac2cdcb99dca8d51a1542917495a1d..4587c5f7db031ef4b2fa76c37c040cd303f04918 100644 (file)
@@ -545,7 +545,6 @@ void handle_io(void)
 
        do {
                struct domain *d, *n;
-               struct timeval tv = { 100, 0 };
                int max_fd = -1;
 
                FD_ZERO(&readfds);
@@ -570,7 +569,7 @@ void handle_io(void)
                        }
                }
 
-               ret = select(max_fd + 1, &readfds, &writefds, 0, &tv);
+               ret = select(max_fd + 1, &readfds, &writefds, 0, NULL);
 
                if (FD_ISSET(xs_fileno(xs), &readfds))
                        handle_xs(xs_fileno(xs));